home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Apps / ScreenSavers / BackSpaceViews / StarShipView.BackModule / StarShipView.h < prev    next >
Encoding:
Text File  |  1995-06-12  |  1.9 KB  |  87 lines

  1. #import <appkit/appkit.h>
  2. #import <sys/dir.h> //for getdirentries()
  3. #import <mach/mach.h>
  4. #import <mach/message.h>
  5. #import <soundkit/Sound.h>
  6. #import "StarShipProtocol.h"
  7.  
  8.  
  9.  
  10. @interface StarShipView:View
  11. {
  12.  
  13.     NXRect smallScreenRect;
  14.     NXRect newViewScreenSize;
  15.  
  16.  
  17.     id                viewScreen;
  18.     id                shipWindow;
  19.     const char        *moduleDir;
  20.     port_t            *port;
  21.     long            frameRate;
  22.     
  23.     BOOL            viewScreenResized;     //set by NewSpaceView
  24.     BOOL             soundEnabled;
  25.     BOOL            soundGood;
  26.     BOOL            firstTimeSound;    //don't play sound on startup
  27.     BOOL            soundDelay;
  28.     Sound            *pwrDownSnd;
  29.     Sound            *pwrUpSnd;
  30.     Sound            *sound;
  31.     List            *controllerList;   //list of space object controllers
  32.     id                 spaceTypeController;      //current controller
  33.     unsigned int    controllerIndex;        //current controller index
  34.     unsigned int    controllerTypeCount;     //total controller count
  35.     NXRect             *rectPtr,clipRect;        //for setting clipping
  36.  
  37.     id                inspectorPanel;
  38.     id                starSpeedSlider;
  39.     id                animationSlider;
  40.     id                objectSpeedSlider;
  41.     id                objectIntervalSlider;
  42.     id                cycleCountSlider;
  43.     id                cycleCountBox;
  44.     id                soundMatrix;
  45.     id                infoText;
  46.     id                moduleBox;
  47. }
  48.  
  49. - buildControllerList:(char *)directory;   // build list of space object types
  50.  
  51. - (int)searchDirectory: (char *)directory;
  52.  
  53.  
  54. // I never implemented this but if someone wanted to
  55. // let me know
  56. //- mouseDown:(NXEvent *)theEvent;
  57.  
  58.  
  59. - (const char *) windowTitle;
  60.  
  61. - inspector:sender;
  62. - inspectorWillBeRemoved;
  63.  
  64. - (BOOL)makeSndObjects: (char *)directory;
  65. - setAnimationSpeed:(Slider *)sender;
  66. - setObjectSpeed:(Slider *)sender;
  67. - setObjectInterval:(Slider *)sender;
  68. - setCycleCount:(Slider *)sender;
  69. - setStarSpeed:(Slider *)sender;
  70. - setSound:sender;
  71. - setModuleBox;
  72.  
  73.  
  74. port_t *xmach_sleep_install(void);
  75. void xmach_sleep_remove(port_t *);
  76. void xmach_sleep(port_t *, msg_timeout_t);
  77.  
  78. - inspector:sender;
  79. - viewScreenResized:(NXRect *)screenRect;
  80.  
  81. - delayedDefaults:sender;
  82. - getDefaults:sender;
  83. - writeDefaults:sender;
  84.  
  85. @end
  86.  
  87.